package ru.spies.help;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class MyLogger {
	
	public static final String CAN_T_FIND_COUNTRY_LIKE_THIS = "Can\'t find country like this!";
	public static final String CAN_T_FIND_DEPARTMENT_LIKE_THIS = "Can\'t find department like this!";
	public static final String CAN_T_FIND_TASK_LIKE_THIS = "Can\'t find task like this!";
	public static final String CANT_FIND_THIS_PARAM="Can't find this param in request";
	public static final String INFO_WAS_READ_WITHOUT_ANY_ERRORS = "Info was read without any errors";
	public static final String INFO_WAS_WROTE_WITHOUT_ANY_ERRORS = "Info was wrote without any errors.";
	public static final String EXCEPTION = "Exception: ";
	public static final String CHARSET_EXCEPTION="Exception with encoding:";
	public static final String CAN_T_CALL_THIS_SP="Have some troubles when try to call stored procedure!";
	
	private Logger log=null;
	private static MyLogger statThis=null;

	private MyLogger() {
		log = LogManager.getLogger(this.getClass());
	}
	
	public static MyLogger getInstance(){
		if (statThis==null){
			statThis= new MyLogger();
		}
		return statThis;
	}
	
	public Logger getLog(){
		return log;
	}

}
